package com.orcamento.components;

import com.orcamento.entity.enums.Month;
import com.orcamento.util.AppConfig;
import com.orcamento.util.CalendarUtil;

public class CalendarPanel {

	private Integer[] years;
	private Month month;
	private String link;
	private Integer year;
	private String id;
	private Integer currentMonth;
	private Integer currentYear;

	public CalendarPanel(Integer year, Month month, String namespace, String method) {
		this.year = year;
		this.month = month;
		this.currentMonth = CalendarUtil.getCurrentMonth();
		this.currentYear = CalendarUtil.getCurrentYear();
		this.years = AppConfig.getYears();
		this.link = namespace+"/"+method;
	}

	public Integer[] getYears() {
		return years;
	}

	public Month getMonth() {
		return month;
	}

	public String getLink() {
		return link;
	}

	public Integer getYear() {
		return year;
	}

	public String getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id + "/";
	}

	public Integer getCurrentMonth() {
		return currentMonth;
	}

	public Integer getCurrentYear() {
		return currentYear;
	}

}
